package exception;

public class ThreadDemo {
    public static void main(String[] args) {
        Thread t1 = new MyThread();
        Thread t2 = new MyThread1();
        t1.start();
        t2.start();
    }
}
class MyThread extends Thread{
    public void run()
    {
        for(int i = 0; i < 1000; i++)
        {
            System.out.println("who are you");
        }
    }
}
class MyThread1 extends Thread{
    public void run()
    {
        for(int i = 0; i < 1000; i++)
        {
            System.out.println("张麒");
        }
    }
}
